<?php require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('goodsorder'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加检测报告</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
<script type="text/javascript" src="plugin/calendar/calendar.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="ui/css/bootstrap.min.css">
<link rel="stylesheet" href="ui/css/bootstrap-theme.min.css" >
<script src="/bootstrap/js/bootstrap.min.js" ></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加设备序列号</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="zhengshu_save.php" onsubmit="return cfm_weblink();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
    <tr>
    <td width="25%" height="40" align="right">设备类型：<span class="maroon">*</span></td>
    <td>
    <select  class="form-control w300" name="typeid" id="typeid" >
                <?php
                    $dosql->Execute("SELECT * FROM `#@__cascadedata` WHERE `datagroup`='device' order by orderid ASC",10);
                        while($row = $dosql->GetArray(10))
                        {
                            echo '<option value="'.$row['datavalue'].'" >'.$row['dataname'].'</option>';
    
                        }
        
                            ?>
    </select>
    </td>
  </tr>
		<tr>
			<td width="25%" height="40" align="right">设备型号：</td>
			<td width="75%"><input type="text" name="typename" class="form-control w300" id="typename" />
				</td>
		</tr>

		<tr>
			<td width="25%" height="40" align="right">设备序列号：</td>
			<td width="75%"><textarea  name="num" id="num" class=" form-control w300 h400"></textarea><span class="maroon">*</span>
				<span class="cnote">带<span class="maroon">*</span>号表示为必填项</span>
                </td>
		</tr>
        
        
        <tr><td  height="40"></td><td>				
                <span class="maroon">支持多个记录批量添加，每个编号一行。中间不能有空行。</span></td></tr>
<tr height="60">
<td align="right">质保 开始时间：</td>
<td><input class="Wdate"  name="beginTime" id="beginTime" type="text" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value="<?php echo date("Y-m-d",time())?>"> 结束时间： <input class="Wdate" type="text" name="endTime" id="endTime" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value="<?php echo date("Y-m-d",strtotime("+2 year"))?>"></td>
</tr>


	


		</tr>
		<tr class="nb">
			<td height="40" align="right">是否出厂：</td>
			<td><input type="radio" name="checkinfo" value="true" checked="checked"  />
				是 &nbsp;
				<input type="radio" name="checkinfo" value="false" />
				否<span class="cnote">选择“否”则该信息暂时不显示在前台</span></td>
		</tr>
        
		<tr>
			<td width="25%" height="40" align="right">使用单位：</td>
			<td width="75%"><input type="text" name="school" class="form-control w300" id="school" />
				</td>
		</tr>

		<tr>
			<td height="40" align="right">联系人：</td>
			<td><input type="text" name="truename" class="form-control w300"  id="truename" /></td>
		</tr>
		<tr>
			<td height="40" align="right">电话：</td>
			<td><input type="text" name="mobile" class="form-control w300"  id="mobile" />
				<span class="maroon">&nbsp;</span></td>
		</tr>
		<tr>
			<td height="40" align="right">地址：</td>
			<td><input type="text" name="address" class="form-control w300"  id="address" />
				<span class="maroon">&nbsp;</span></td>
		</tr>
        
        
	</table>
	<div class="formSubBtn">
        <input type="hidden" name="input_time" id="input_time"  value="<?php echo GetDateTime(time()); ?>" readonly="readonly" />
		<input type="submit" class="btn btn-danger" value="提交" />
		<input type="button" class="btn btn-default" value="返回" onclick="history.go(-1);" />
		<input type="hidden" name="action" id="action" value="add" />
	</div>
</form>

</body>

</html>